let Mock=require('mockjs');//引入mockjs模块
let Random = Mock.Random;

module.exports = function() {
    var data = {//定义等下要返回的json数据
        userinfo: []
    };

    

    for (var i = 1; i < 101; i++) {

        

        data.userinfo.push({
            id: i,//固有id
            username:Random.cname(2,4),
            userpwd:"123456"
        })
    }
    return data //返回json数据
}